package com.software.seakdream.repository;

import com.software.seakdream.entity.Favorite;
import com.software.seakdream.entity.History;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface FavoriteRepository {
    int createFavorite(Favorite favorite);
    int deleteFavorite(String userId, String audioId);
    int deleteFavoriteW(String userId, String whiteId1);

    int isFavorite(String userId,String audioId);

    int createFavoriteW(Favorite favorite);

    List<Favorite> getUserFavourite(String userId);
}
